	.arch armv8-a
	.arch_extension crc
	.arm
	.text
	.global main
	.type main , %function
main:
	push {r4, r5, r6, r7, r8, r10, fp, lr}
	mov fp, sp
	sub sp, sp, #76
.L58:
	ldr r10, =0
	str r10, [fp, #-72]
	ldr r4, =0
	str r4, [fp, #-76]
	b .L62
.L62:
	ldr r4, [fp, #-76]
	cmp r4, #0
	cmp r4, #10
	movlt r4, #1
	movgt r4, #0
	blt .L63
	b .L71
.L63:
	ldr r4, [fp, #-76]
	ldr r5, =1
	add r6, r4, r5
	ldr r4, [fp, #-76]
	mov r5, #-68
	mov r7, #4
	mul r8, r4, r7
	add r4, r5, r8
	add r5, fp, r4
	str r6, [r5]
	ldr r4, [fp, #-76]
	ldr r5, =1
	add r6, r4, r5
	str r6, [fp, #-76]
	b .L62
.L64:
	ldr r4, =10
	str r4, [fp, #-12]
	bl getint
	mov r4, r0
	str r4, [fp, #-28]
	ldr r4, [fp, #-12]
	ldr r5, =1
	sub r6, r4, r5
	str r6, [fp, #-24]
	ldr r4, =0
	str r4, [fp, #-20]
	ldr r4, [fp, #-24]
	ldr r5, [fp, #-20]
	add r6, r4, r5
	ldr r4, =2
	sdiv r5, r6, r4
	str r5, [fp, #-16]
	ldr r4, =0
	str r4, [fp, #-8]
	ldr r4, =0
	str r4, [fp, #-76]
	ldr r4, =0
	str r4, [fp, #-4]
	b .L79
.L66:
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L67:
	b .L66
.L71:
	b .L64
.L79:
	ldr r4, [fp, #-76]
	cmp r4, #0
	cmp r4, #10
	movlt r4, #1
	movgt r4, #0
	blt .L82
	b .L89
.L80:
	ldr r4, [fp, #-76]
	cmp r4, #0
	mov r5, #-68
	mov r6, #4
	mul r7, r4, r6
	add r4, r5, r7
	add r5, fp, r4
	ldr r4, [r5]
	ldr r5, [fp, #-28]
	cmp r5, #0
	cmp r4, r5
	beq .L97
	b .L110
.L81:
	ldr r4, [fp, #-8]
	cmp r4, #0
	cmp r4, #1
	beq .L111
	b .L120
.L82:
	ldr r4, [fp, #-8]
	cmp r4, #0
	cmp r4, #0
	beq .L80
	b .L96
.L84:
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L85:
	b .L84
.L89:
	b .L81
.L91:
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L92:
	b .L91
.L96:
	b .L81
.L97:
	ldr r4, =1
	str r4, [fp, #-8]
	ldr r4, [fp, #-76]
	str r4, [fp, #-4]
	b .L98
.L98:
	ldr r4, [fp, #-76]
	ldr r5, =1
	add r6, r4, r5
	str r6, [fp, #-76]
	b .L79
.L100:
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L101:
	b .L100
.L105:
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L106:
	b .L105
.L110:
	b .L98
.L111:
	ldr r4, [fp, #-4]
	mov r0, r4
	bl putint
	b .L112
.L112:
	ldr r4, =10
	str r4, [fp, #-28]
	ldr r4, [fp, #-28]
	mov r0, r4
	bl putch
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L113:
	ldr r4, =0
	str r4, [fp, #-28]
	ldr r4, [fp, #-28]
	mov r0, r4
	bl putint
	b .L112
.L115:
	mov r0, #0
	add sp, sp, #76
	pop {r4, r5, r6, r7, r8, r10, fp, lr}
	bx lr
.L116:
	b .L115
.L120:
	b .L113

